using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BaseSingleMono<T> : MonoBehaviour,ISingleMono<T> where T: MonoBehaviour
{
    public T Instance { get; protected set; }

    private void Awake()
    {
        AwakeInit();
    }


    protected virtual void AwakeInit()
    {
        Instance = gameObject.GetComponent<T>();
    }
}
